<?php
if (!defined("_INDEX")) { header("Location: /"); die; }

if ($news_id = $route->getAdminId())
	$db->sendQuery("delete from `news` where `news_id` = '$news_id' limit 1");

goToPage("/admin/news");
?>